-module(cfg_fightmonster).
-export([
get/1,
all/0
])
get(1) ->#cfg_fightmonster{id=1,name="山猪",hp=100,mp=10,attack=10,def=2};
get(2) ->#cfg_fightmonster{id=2,name="山猪队长",hp=100,mp=50,attack=15,def=2};
get(3) ->#cfg_fightmonster{id=3,name="山猪头领",hp=100,mp=100,attack=30,def=2};
get(_) -> null.
all() ->
[#cfg_fightmonster{id=1,name="山猪",hp=100,mp=10,attack=10,def=2},#cfg_fightmonster{id=2,name="山猪队长",hp=100,mp=50,attack=15,def=2},#cfg_fightmonster{id=3,name="山猪头领",hp=100,mp=100,attack=30,def=2}].